package com.louis.buddhist.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by fenglei on 2018/4/11.
 */

public class CatalogEntity {


    private List<EbookContentBean> ebook_content;

    public List<EbookContentBean> getEbook_content() {
        return ebook_content;
    }

    public void setEbook_content(List<EbookContentBean> ebook_content) {
        this.ebook_content = ebook_content;
    }

    public static class EbookContentBean implements Parcelable {
        /**
         * id : 1
         * book_id : 1
         * title : 法會因由分第一
         * page_no : 15
         */

        private String id;
        private String book_id;
        private String title;
        private int page_no;
        private String filename;

        public String getFilename() {
            return filename;
        }

        public void setFilename(String filename) {
            this.filename = filename;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getBook_id() {
            return book_id;
        }

        public void setBook_id(String book_id) {
            this.book_id = book_id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getPage_no() {
            return page_no;
        }

        public void setPage_no(int page_no) {
            this.page_no = page_no;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.book_id);
            dest.writeString(this.title);
            dest.writeInt(this.page_no);
        }

        public EbookContentBean() {
        }

        protected EbookContentBean(Parcel in) {
            this.id = in.readString();
            this.book_id = in.readString();
            this.title = in.readString();
            this.page_no = in.readInt();
        }

        public static final Parcelable.Creator<EbookContentBean> CREATOR = new Parcelable.Creator<EbookContentBean>() {
            @Override
            public EbookContentBean createFromParcel(Parcel source) {
                return new EbookContentBean(source);
            }

            @Override
            public EbookContentBean[] newArray(int size) {
                return new EbookContentBean[size];
            }
        };
    }
}
